package br.com.amadeus.android.graphics;

import br.com.amadeus.android.activities.home.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class FormPizza extends Activity
{
	private Intent intent;
	private EditText sc;
	private EditText nt;
	private EditText spt;
	
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.layout_pizza);
		
		sc = (EditText)findViewById(R.id.editText1);
		nt = (EditText)findViewById(R.id.editText2);
		spt = (EditText)findViewById(R.id.editText3);

		intent = new Intent(this, Pizza.class);
		
		Button b = (Button)findViewById(R.id.button1);
		b.setOnClickListener(new OnClickListener() 
		{
			public void onClick(View v) 
			{
				intent.putExtra("t", sc.getText().toString());
				intent.putExtra("n", nt.getText().toString());
				intent.putExtra("s", spt.getText().toString());
				
				startActivity(intent);
			}
		});
	}
}
